class CreateVoteTracks < ActiveRecord::Migration
  def self.up
    create_table :vote_tracks do |t|
      t.references :user
      t.references :person
      t.string :vote_type, :limit => 9, :null => true
      t.integer :assessment_weight, :limit => 1 #1 byte basta, 256 valori possibili [-128..127]
      
      t.timestamps
    end
  end

  def self.down
    drop_table :vote_tracks
  end
end